import request from '@/utils/request';

//治疗开单api
const BASE_URL = 'admin';

//字典查询
export const dictionariesSearch = params => request.get(`${BASE_URL}/dic/search`, { params });

//获取启用的管理员通过角色
export const queryRoleList = params => request.get(`${BASE_URL}/auth/getEnableAdminsWithRole`, { params });

//获取科室列表
export const queryAbteilungList = params => request.get(`${BASE_URL}/common/department/list`, { params });

//获取治疗单项
export const queryCureSingle = params => request.get(`${BASE_URL}/treatment/list`, { params });

//获取治疗方案
export const queryCurePlan = params => request.get(`${BASE_URL}/programme/list`, { params });

//获取方案项目列表
export const queryPlanItemList = params => request.get(`${BASE_URL}/programme/treatment/list`, { params })

//保存治疗开单
export const saveCureBilling = data => request.post(`${BASE_URL}/treatment/advice/add`, data);

//提交治疗开单
export const commitCureBilling = data => request.post(`${BASE_URL}/treatment/advice/submit`, data);


//患者信息查询
export const queryPatientInfo = params => request.get(`${BASE_URL}/patient/info`, { params });

//查询医嘱详情
export const queryOrderDetail = params => request.get(`${BASE_URL}/treatment/advice/detail`, { params });

//历史治疗申请列表
export const historyCureApplyForList = params => request.get(`${BASE_URL}/treatment/advice/list`, { params });

//作废医嘱
export const cancellationOrder = data => request.post(`${BASE_URL}/treatment/advice/cancel`, data);

//吞咽功能障碍评定
export const saveSwallowEvaluate = data => request.post(`${BASE_URL}/treatment/swallow/swallowEvaluate`, data);

//肺功能和日常生活评定
export const savePulmonaryEvaluate = data => request.post(`${BASE_URL}/treatment/pulmonary/pulmonaryEvaluate`, data);

//周围性面神经炎治疗成绩评分详情
export const saveNerveEvaluate = data => request.post(`${BASE_URL}/treatment/nerve/nerveEvaluate`, data);

//康复评定记录
export const saveRecoveryRecord = data => request.post(`${BASE_URL}/treatment/recovery/recoveryRecord`, data);

//偏瘫运动功能评定
export const saveSportsEvaluate = data => request.post(`${BASE_URL}/treatment/sports/sportsEvaluate`, data);

//神经损伤功能评定
export const saveNerveDamageEvaluate = data => request.post(`${BASE_URL}/treatment/nerveDamage/nerveDamageEvaluate`, data);

//神经康复功能评定
export const saveNerveRecoveryEvaluate = data => request.post(`${BASE_URL}/treatment/nerveRecovery/nerveRecoveryEvaluate`, data);

//吞咽功能评定详情
export const querySwallowDetail = params => request.get(`${BASE_URL}/treatment/swallow/detail`, { params });

//康复评定记录详情
export const queryRecoveryDetail = params => request.get(`${BASE_URL}/treatment/recovery/detail`, { params });

//神经康复功能评定详情
export const queryNerveRecoveryDetail = params => request.get(`${BASE_URL}/treatment/nerveRecovery/detail`, { params });

//神经损伤功能评定详情
export const queryNerveDamageDetail = params => request.get(`${BASE_URL}/treatment/nerveDamage/detail`, { params });

//偏瘫运动功能评定详情
export const querySportsDetail = params => request.get(`${BASE_URL}/treatment/sports/detail`, { params });

//周围性面神经炎治疗成绩评分详情
export const queryNerveDetail = params => request.get(`${BASE_URL}/treatment/nerve/detail`, { params });

//肺功能和日常生活能力评估详情
export const queryPulmonaryDetail = params => request.get(`${BASE_URL}/treatment/pulmonary/detail`, { params });
